import request from '@/utils/request'

// 查询盒盘点上送结果数据列表
export function listArchiveStocktakingBox(query) {
  return request({
    url: '/archive/ArchiveStocktakingBox/list',
    method: 'get',
    params: query
  })
}

// 查询盒盘点上送结果数据详细
export function getArchiveStocktakingBox(id) {
  return request({
    url: '/archive/ArchiveStocktakingBox/' + id,
    method: 'get'
  })
}

// 新增盒盘点上送结果数据
export function addArchiveStocktakingBox(data) {
  return request({
    url: '/archive/ArchiveStocktakingBox',
    method: 'post',
    data: data
  })
}

// 修改盒盘点上送结果数据
export function updateArchiveStocktakingBox(data) {
  return request({
    url: '/archive/ArchiveStocktakingBox',
    method: 'put',
    data: data
  })
}

// 删除盒盘点上送结果数据
export function delArchiveStocktakingBox(id) {
  return request({
    url: '/archive/ArchiveStocktakingBox/' + id,
    method: 'delete'
  })
}
